package com.andy.io;

import java.io.InputStream;

public class Resources {

    /**
     * 读取包路径下的配置文件
     * 返回输入流
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path){
        return Resources.class.getClassLoader().getResourceAsStream(path);
    }

}
